<!doctype html>
<html>
	<head id="top">
		<meta charset="UTF-8">
		<title>{{title}}</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../../../css/cmms.css"/>
		<link rel="stylesheet" href="../../../css/doctor/project/common.css" />
		<link rel="stylesheet" href="../../../css/doctor/project/clinicalTest.css" />
	</head>
	
	<body>
		<div id="test">
			<div class="mui-content">
			   <div class="mainBox">
			   		<ul>
			   			<li><span>项目名称</span><span>临床意义</span></li>
			   			<li v-for="msg in message">
			   				<span>{{msg.name}}</span>
			   				<span>{{msg.content}}</span>
			   			</li>
			   			<div class="noData" v-show="!message.length>0">
							<p><img src="../../../img/nodata.png"/></p>
							<p>暂无内容</p>
						</div>
			   		</ul>
			   </div>
			</div>
		</div>
		<script src="../../../js/mui.min.js"></script>
		<script src="../../../js/vue.js"></script>
		<script src="../../../js/cmms.js?time=333"></script>
		<script>
			var top=new Vue({
				el:'#top',
				data:{
					title:''
				},
				mounted(){
					let url=location.href.split("?")[1];
					this.get(url);
				},
				methods:{
					get:function(url){
						let _this=this;
						if(url){
							let code=url.split("&")[1].split("=")[1];
							let t = decodeURI(decodeURI(code)); 
							_this.title=t;
						}
					}
				}
			});
			var box=new Vue({
				el:'#test',
				data:{
					message:[],
					id:''
				},
				mounted(){
					url=location.href.split('?')[1];
					this.getCode(url);
					this.loadMessage();
				},
				methods:{
					getCode:function(url){
						let _this=this;
						let code=url.split('&')[0].split('=')[1];
						_this.id=code;
						console.log(_this.id);
					},
					loadMessage:function(){
						let _this=this;
						console.log(_this.id);
						AT.muiAjaxDoctor('/common/common/selectItemByCateId','post',{
							id:_this.id
						},
						function(res){
							console.log(res);
							_this.message = res;
//							console.log(this.message);
						});
					}
					
				}
			});
		</script>
	</body>

</html>